<?php
/**
 * 义务基类.
 */
namespace Lib\Core;

class Business extends \Home {

    /**
     * 抛出去一个业务异常.
     *
     * @param string  $msg  异常信息.
     * @param integer $code 异常代码.
     *
     * @throws \Lib\Exception\Business
     */
    public function throwException($msg = '', $code = 0) {
        $code = (int) $code;
        throw new \Lib\Exception\Business($msg, $code);
    }

}